package com.aliyunoss;

import com.aliyunoss.properties.OssProperties;
import com.aliyunoss.template.OssTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties({
        OssProperties.class
})
public class AliyunOssAutoConfig {

    @Bean
    public OssTemplate ossTemplate(OssProperties ossProperties){
        return new OssTemplate(ossProperties);
    }


}
